﻿using System;
using System.Collections.Generic;
using System.Text;
using SAServices.DAL;

namespace SAServices.BLL
{
    public class ParameterBLL
    {
        internal static bool AddFamilyParameters(Model.ConnectionConext connCtx, List<Model.ParameterInfo> familyParameters)
        {
            return ParameterDAL.AddFamilyParameters(connCtx, familyParameters);
        }

        internal static bool UpdateFamilyParameters(Model.ConnectionConext connCtx, List<Model.ParameterInfo> familyParameters)
        {
            return ParameterDAL.UpdateFamilyParameters(connCtx, familyParameters);
        }

        internal static bool DeleteFamilyParameters(Model.ConnectionConext connCtx, Guid familyId)
        {
            return ParameterDAL.DeleteFamilyParameters(connCtx, familyId);
        }

        internal static Model.ParameterInfo GetFamilyParameterInfo(Model.ConnectionConext connCtx, Guid parameterId)
        {
            return ParameterDAL.GetFamilyParameterInfo(connCtx, parameterId);
        }

        internal static List<Model.ParameterInfo> GetFamilyKeyParameters(Model.ConnectionConext connCtx, Guid familyId)
        {
            return ParameterDAL.GetFamilyKeyParameters(connCtx, familyId);
        }

        internal static List<Model.ParameterInfo> GetFamilyParameters(Model.ConnectionConext connCtx, Guid familyId)
        {
            return ParameterDAL.GetFamilyParameters(connCtx, familyId);
        }

        internal static List<Model.ParameterValueInfo> GetParamVals(Model.ConnectionConext connCtx, Guid parameterId, List<Model.ParameterValueInfo> paramConstrains)
        {
            return ParameterDAL.GetParamVals(connCtx, parameterId, paramConstrains);
        }

        internal static Model.ParameterValueInfo GetParamVal(Model.ConnectionConext connCtx, Guid familyId, Guid instanceId, Guid parameterId)
        {
            return ParameterDAL.GetParamVal(connCtx, familyId, instanceId, parameterId);
        }

        internal static List<Model.ParameterValueInfo> GetDriveParameterVals(Model.ConnectionConext connCtx,Guid familyId, Guid instanceId)
        {
            return ParameterDAL.GetDriveParameterVals(connCtx, familyId, instanceId);
        }
    }
}
